<template>
  <div class="form-config-container">
    <form label-position="top">
      <view :label="$t('fm.config.form.labelPosition.title')">
        <radio-group v-model="data.labelPosition">
          <radio label="left">{{$t('fm.config.form.labelPosition.left')}}</radio>
          <radio label="right">{{$t('fm.config.form.labelPosition.right')}}</radio>
          <radio label="top">{{$t('fm.config.form.labelPosition.top')}}</radio>
        </radio-group>
      </view>

      <view :label="$t('fm.config.form.labelWidth')">
        <input-number v-model="data.labelWidth" :min="0" :max="200" :step="10"></input-number>
      </view>

      <view :label="$t('fm.config.form.size')">
        <radio-group v-model="data.size">
          <radio label="medium">medium</radio>
          <radio label="small">small</radio>
          <radio label="mini">mini</radio>
        </radio-group>
      </view>
    </form>
  </div>
</template>

<script>
import inputNumber from '../components/uni-number-box/uni-number-box'
export default {
  props: ['data'],
  components:{
    inputNumber
  }
}
</script>
